package com.xyw.code.platform.common.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by xuyiwei on 2019/8/8.
 */
@Getter
@AllArgsConstructor
public enum MenuIsFrameEnum {

    OUT(0, "外链"),
    IN(1, "本地"),
    ;


    private int type;
    private String description;


    public static MenuIsFrameEnum valueOf(int type) {
        for(MenuIsFrameEnum typeVar : MenuIsFrameEnum.values()) {
            if(typeVar.getType() == type) {
                return typeVar;
            }
        }
        return  OUT;
    }
}
